package com.dhx.service;

import com.dhx.dao.SpInfoDao;
import com.dhx.model.SpInfo;

import java.util.ArrayList;

/**
 * @ClassName SpInfoService
 * @Author 邓皓轩
 * @Date 2024/11/3 下午3:37
 **/
public class SpInfoService {
    private SpInfoDao spInfoDao = new SpInfoDao();
    public boolean addSpInfo(SpInfo sp)
    {
        return spInfoDao.addSpInfo(sp);
    }
    public boolean deleteSpInfo(int id)
    {
        return spInfoDao.deleteSpInfo(id);
    }
    public ArrayList<SpInfo> getSpInfoByName(SpInfo sp)
    {
        return spInfoDao.getSpInfoByName(sp);
    }
    public boolean updateSpInfo(SpInfo sp)
    {
        return spInfoDao.updateSpInfo(sp);
    }
}
